package com.h2.ref.server.user.openid;

public class OpenId {

   private Integer _id;
   
   private Integer _userId;
   
   private String _uid;
   
   ////
   ////

   /**
    * @return the id
    */
   public Integer getId() {
      return _id;
   }

   /**
    * @param id the id to set
    */
   public void setId(Integer id) {
      _id = id;
   }

   /**
    * @return the userId
    */
   public Integer getUserId() {
      return _userId;
   }

   /**
    * @param userId the userId to set
    */
   public void setUserId(Integer userId) {
      _userId = userId;
   }

   /**
    * @return the uid
    */
   public String getUid() {
      return _uid;
   }

   /**
    * @param uid the uid to set
    */
   public void setUid(String uid) {
      _uid = uid;
   }

   /* (non-Javadoc)
    * @see java.lang.Object#hashCode()
    */
   @Override
   public int hashCode() {
      final int prime = 31;
      int result = 1;
      result = prime * result + ((_uid == null) ? 0 : _uid.hashCode());
      return result;
   }

   /* (non-Javadoc)
    * @see java.lang.Object#equals(java.lang.Object)
    */
   @Override
   public boolean equals(Object obj) {
      if (this == obj) {
         return true;
      }
      if (obj == null) {
         return false;
      }
      if (getClass() != obj.getClass()) {
         return false;
      }
      OpenId other = (OpenId) obj;
      if (_uid == null) {
         if (other._uid != null) {
            return false;
         }
      } else if (!_uid.equals(other._uid)) {
         return false;
      }
      return true;
   }
}
